package com.shenyong.ladmin.mapper;

import com.shenyong.ladmin.entity.Comment;
import com.shenyong.ladmin.result.Page;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CommentMapper {
    //得到所有文章评论
    List<Comment> commentAll(Page page);
    //查询总条数
    int commentCount(Page page);
    //删除文章评论
    int deleteComment(int comment_id);


    //=========
    //查询文章下评论   ↓↓↓↓
    //List<Comment> commentByArticleId(int comment_articleid);
}
